import ProxyInterface from '../proxy-interface';
import {QuotaModel} from '@pkpm/pkpm-types';

class QuotaProxy implements ProxyInterface<QuotaModel> {
    public quotaModel = new QuotaModel();
    constructor(responseData) {
        let data = responseData.data || responseData;
        Object.assign<QuotaModel, QuotaModel>(this.quotaModel, data);
    }

    getModel(): QuotaModel {
        return this.quotaModel;
    }
}

export default QuotaProxy;
